-- GENERATED SPELL FOR [Keeper Witherleaf] --


function spell0_24638(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(43619,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24638', 2000, 1)
end

function Sorts_24638(pUnit, Event)
local choix_sorts_24638 = math.random(0, 0)
if choix_sorts_24638 == 0 then
pUnit:RegisterEvent('spell0_24638', 1, 1)
end
end

function mob24638_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24638', math.random(1500, 3000), 1)
end

function mob24638_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24638_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24638_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24638, 1, 'mob24638_Action')
RegisterUnitEvent(24638, 2, 'mob24638_Leave')
RegisterUnitEvent(24638, 3, 'mob24638_Kill')
RegisterUnitEvent(24638, 4, 'mob24638_Die')
